import requests


def searcharound(key, keywords) -> str:
    """关键词搜索"""
    url = "https://restapi.amap.com/v3/place/text?parameters"
    params = {
        "key": key,
        "keywords": keywords,
    }
    response = requests.get(url, params=params)
    results = response.json()['pois'][1]['type']
    # 返回值
    return results
